<template>
    <div>
        <headers :title="'商品评价页'"></headers>
        <div class="px-2 my-3 bg-white py-3" v-if="comment">
           <div v-for="item in comment" :key="item.goods_id">
                
           </div>
        
          </div>
    </div>
</template>

<script>
import comment from '@/components/comment.vue'
import headers from '@/components/header.vue'
import { commentList,allComment } from '@/api/comment';
export default {
    name:'productionComment',
    async created() {
        const {data:{
            list:{
                data
            }
        }} = await commentList(this.$route.params.id)
        this.comment = data
        console.log(data);
    },
    data:()=>{
        return {
            comment
        }
    },
    components:{
        comment,
        headers
    }
}
</script>

<style scoped lang="less">

</style>